import request from '@/utils/request'

export function listAllAuther() {
    return request({
        url: `/auther/all`,
        method: 'get'
    })
}

export function getAutherList(pageNum, pageSize) {
    return request({
        url: `/auther/list?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'get'
    })
}

export function addAuther(auther) {
    return request({
        url: `/auther`,
        method: 'post',
        data: auther
    })
}

export function updateAuther(auther) {
    return request({
        url: `/auther`,
        method: 'put',
        data: auther
    })
}

export function delAuther(id) {
    return request({
        url: `/auther/${id}`,
        method: 'delete',
    })
}